package com.study.talk.module.netty.message.request;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageRequest extends TalkMessage {

    @ApiModelProperty("接收方id")
    private Integer receiverId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private int messageType = 0;

    @Override
    public byte getType() {
        return MessageType.SEND_MESSAGE_REQUEST;
    }
}
